package com.taotao.job.executor.thread;


import java.util.List;

/**
 * 运行结果上报
 */
public class RunResultReportThread extends AbstractAsyncProccessThread {

    protected RunResultReportThread() {
        super("RunResultReport", new Proccessor() {

            @Override
            public boolean proccess(List datas) throws Exception {

                //上报运行结果逻辑

                return false;
            }
        });
    }


    private static RunResultReportThread getInstance() {
        RunResultReportThread thread = (RunResultReportThread) instanceMap.get(RunResultReportThread.class);
        if (null == thread) {
            synchronized (RunResultReportThread.class) {
                if (null == thread) {
                    thread = new RunResultReportThread();
                    instanceMap.put(RunResultReportThread.class, thread);
                }
            }
        }

        return thread;
    }
}
